package v1ch05.abstractClasses;

public class Student extends Person {
	private String major;
	
	/**
	 * @param nama  the student's name  学生姓名
	 * @param major the student's major 学生主修
	 */
	public Student(String name, String major) {
		// pass n to superclass constructor
		super(name);
		this.major = major;
	}
	
	public String getDescription() {
		return "a student majoring in " + major;
	}
}
